package maven.jyhs.com.servce;


import maven.jyhs.com.entity.Sea;
import maven.jyhs.com.entity.Search;
import maven.jyhs.com.entity.User;
import maven.jyhs.com.entity.dto.Users;

import java.sql.SQLException;
import java.util.List;

public interface TranstfeSevrce {
    List<User> gather();
    long id(int id) throws IllegalAccessException;


    boolean update(User user);
    int add(User user);

    int xuogai(int jq, String skname, String fkname);


    int chishu() throws SQLException, IllegalAccessException;


    int  search(Sea sea) throws SQLException, IllegalAccessException;

    List<Search> getYs(int page, int limit, Sea sea) throws SQLException, ClassNotFoundException, IllegalAccessException;

    int login(String phone) throws SQLException, IllegalAccessException;

    int saveSearch(Search search) throws SQLException, IllegalAccessException;

    Boolean delete(int id) throws IllegalAccessException;

    List<Users> getUsers(Users user ) throws SQLException, ClassNotFoundException, IllegalAccessException;


    int limit(Users user) throws SQLException, IllegalAccessException;
}
